package com.kwok.openplatform.dao;

import com.kwok.openplatform.entity.Customer;

import java.util.List;

/**
 * 客户表(Customer)表数据库访问层
 *
 * @author Kwok
 * @since 2024-07-21 18:31:38
 */
public interface CustomerDao {

    //插入客户
    Integer insertCustomer(Customer customer);

    Customer selectCustomerById(Integer customerId);

    //分页查询所有客户
    List<Customer> selectCustomers(Customer customer);

    List<Customer> selectCustomerList();

    //通过ID修改更新客户
    Integer updateCustomerById(Customer customer);

    //通过ID删除客户
    Integer deleteCustomerById(Integer id);

    //通过ID批量删除客户
    Integer batchDeleteCustomerById(Integer... ids);

}

